
import Button from '../../components/button/button';
import { useDispatch } from 'react-redux';
import { logout } from '../../store/auth/authorisation.slice';

export const User = () => {
	const dispatch = useDispatch();
	return (
		<div>
			<Button onClick={() => dispatch(logout())}>Выход</Button>
		</div>
	);
};
